import { Component, Vue } from "vue-property-decorator";
@Component
export default class GetFormInfoDescription extends Vue {
    description = "";
    descriptionType = "";

    created() {
        this.getFormInfo();
    }

    async getFormInfo() {
        const res: any = await this.$server["moduleManage/form/query"]({
            params: {
                id: this.$route.query.formId
            }
        });
        if (res.data.code === 200) {
            this.description = res.data.data.description;
            this.descriptionType = res.data.data.descriptionType;
        }
    }
}
